#from PIL.Image import Image
import PIL.Image as Image
import shutil
import os

infile = 'D:\\GIT\\PythonImage\\test_image.jpg'
outfile = 'D:\\GIT\\PythonImage\\test_image_adjust.bmp'


img = Image.open(infile)
print(img.size)
print(img.mode)  # 图片的模式
print(img.format)  # 图片的格式
img.save(outfile)

imgOut = Image.open(outfile)
print(imgOut.format)
